//-----------------------------------------------------------------------------
//file : App.xaml.cs
//brief : Create directory UI
//author : Benjamin Maillard
//date : 31 Mars 2009
//-----------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace TriPhoto
{
    /// <summary>
    /// Interaction logic for SaisieRepertoire.xaml
    /// </summary>

    public partial class SaisieRepertoire : System.Windows.Window
    {

        public SaisieRepertoire()
        {
            InitializeComponent();

            NomRepertoireTextBox.Focus();
        }

        public string NomRepertoire
        {
            get 
            {
                return NomRepertoireTextBox.Text;
            }
        }


        /// <summary>
        /// Valider
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void Valider(object sender, RoutedEventArgs e)
        {
            DialogResult = true;
            Close();
        }

        /// <summary>
        /// Annuler
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public void Annuler(object sender, RoutedEventArgs e)
        {
            DialogResult = false;
            Close();
        }

    }
}